package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Students2Mapper;
import com.ruoyi.system.domain.Students2;
import com.ruoyi.system.service.IStudents2Service;

/**
 * 学生表2Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
@Service
public class Students2ServiceImpl implements IStudents2Service 
{
    @Autowired
    private Students2Mapper students2Mapper;

    /**
     * 查询学生表2
     * 
     * @param studentId 学生表2主键
     * @return 学生表2
     */
    @Override
    public Students2 selectStudents2ByStudentId(Long studentId)
    {
        return students2Mapper.selectStudents2ByStudentId(studentId);
    }

    /**
     * 查询学生表2列表
     * 
     * @param students2 学生表2
     * @return 学生表2
     */
    @Override
    public List<Students2> selectStudents2List(Students2 students2)
    {
        return students2Mapper.selectStudents2List(students2);
    }

    /**
     * 新增学生表2
     * 
     * @param students2 学生表2
     * @return 结果
     */
    @Override
    public int insertStudents2(Students2 students2)
    {
        return students2Mapper.insertStudents2(students2);
    }

    /**
     * 修改学生表2
     * 
     * @param students2 学生表2
     * @return 结果
     */
    @Override
    public int updateStudents2(Students2 students2)
    {
        return students2Mapper.updateStudents2(students2);
    }

    /**
     * 批量删除学生表2
     * 
     * @param studentIds 需要删除的学生表2主键
     * @return 结果
     */
    @Override
    public int deleteStudents2ByStudentIds(Long[] studentIds)
    {
        return students2Mapper.deleteStudents2ByStudentIds(studentIds);
    }

    /**
     * 删除学生表2信息
     * 
     * @param studentId 学生表2主键
     * @return 结果
     */
    @Override
    public int deleteStudents2ByStudentId(Long studentId)
    {
        return students2Mapper.deleteStudents2ByStudentId(studentId);
    }
}
